<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>

<html>
    <head>
        <title>Spring Security Login</title>
              
    </head>
	<body style="border:1px solid; margin:0 40px;">	
		<f:view >		
		    <div>
				<div style="border:1px solid; margin:0 auto; position:relative; width:290px; padding:10px">
					<h:form >
						<h:panelGrid columns="2">
							<h:outputLabel value="User Name" for="j_username"/>
							<h:inputText id="j_username"
										   value="#{loginBean.username}" 
										   required="true">
								<f:validator validatorId="usernameValidator"/>
							</h:inputText>
							<h:outputLabel value="Password" for="j_password"/>
							<h:inputSecret id="j_password"
											 value="#{loginBean.password}" 
											 required="true"/>
						</h:panelGrid>
						<h:commandButton action="#{loginBean.doLogin}" value="Login"/>
						<h:messages style="color: red;"/>
					</h:form>
				</div>
		    </div>
		</f:view>
    </body>
</html>

